<?php
  include_once('../includes/initialize.php');
  
  $color = isset($_POST['color']) ? "#" . $_POST['color'] : false;
  $page  = isset($_POST['page'])  ? $_POST['page']  : false; 

  $slide = new SLIDES($page);
  
  $data = array('bgcolor'=>$color);
  $slide->saveArray($data);
?>